﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CAMLViewer.aspx.cs" Inherits="CAMLViewer.Layouts.CAMLViewer.CAMLViewer" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">


<style type="text/css">
table.hovertable {
	font-family: verdana,arial,sans-serif;
	font-size:11px;
	color:#333333;
	border-width: 1px;
	border-color: #999999;
	width:520px;
}
table.hovertable th {
	background-color:#c3dde0;
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #a9c6c9;
}
table.hovertable tr {
	background-color:#d4e3e5;
	text-align:left;
}
table.hovertable td {
	border-width: 1px;
	padding: 2px;
	border-style: solid;
	border-color: #a9c6c9;
}

</style>
​</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<table  class="hovertable" >
<tr >
<td style="width:20%;"><b>URL :</b> </td><td style="width:60%;" ><asp:TextBox ID="TextBox1" runat="server" width="98%"></asp:TextBox></td>
<td style="width:20%;"><asp:UpdateProgress ID="UpdateProgress1" runat="server"><ProgressTemplate><img src="loading.gif" /></ProgressTemplate></asp:UpdateProgress></td>
</tr>
</table>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>

<table class="hovertable">
 <tr><td colspan="6"><asp:Button ID="btnGo" Text="<< GO >>" OnClick="btnGo_click" height="50px" Width="100%" runat="server" /> </td></tr>
 <tr><td colspan="6" style="color:Red;"><asp:Label runat="server" Text="" ID="lblStatus"></asp:Label></td></tr>
 </table>
<table class="hovertable">
<tr>
<td width="50%"><b>Lists</b> </td>
<td ><b>Views</b></td>
</tr>
<tr>
<td ><asp:ListBox ID="lstLists" runat="server" AutoPostBack="True" Height="211px" Width="100%" onselectedindexchanged="lstLists_SelectedIndexChanged"></asp:ListBox></td>
<td ><asp:ListBox ID="lstViews" runat="server" AutoPostBack="True" Height="211px" Width="100%" onselectedindexchanged="lstViews_SelectedIndexChanged"></asp:ListBox></td>
</tr>
</table>



<table class="hovertable">
<tr id="trListID" runat="server" visible="false" align="left"><td colspan="2" align="left> List ID : <b><asp:Label ID="lblListID" runat="server" Text=""> </asp:Label></b></td></tr>
<tr  id="trViewID" runat="server" visible="false"><td colspan="2">View ID : <b><asp:Label ID="lblViewId" runat="server" Text=""></asp:Label></b></td></tr>
<tr  id="trQuery" runat="server" visible="false"><td colspan="2"><div id="dvQuery" ><asp:TextBox ID="txtQuery"  runat="server" Height="271px" TextMode="MultiLine" Width="98%"></asp:TextBox></div>   </td></tr>
<tr  id="trInternalNames" runat="server" visible="false"><td colspan="2"><div id="dvInternalNames" runat="server"></div>
</td></tr>
</table>

</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
CAML Viewer
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >

</asp:Content>